/**
 *
 * @author Nick Herrmann
 */
public class Melt extends Action {
	public Melt(Predicate p, int duration) {
		super("Melt", duration);

		addPreconditions(p);
		addToAddList(new Melted(p, duration));
		addToDeleteList(p);	
		
		addToResources(Resource.POT);
		addToResources(Resource.STOVE_PLATE);
	}
	
	public Melt() {
		super("Melt", 0);
		addToAddList(new Melted());
		
		addToResources(Resource.POT);
		addToResources(Resource.STOVE_PLATE);
	}
}
